home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / Projects / Questions & Answers / Q&A Programming Music / Spreading controllers over zone < prev    next >
Encoding:
Text File  |  1998-10-26  |  1.0 KB  |  49 lines  |  [TEXT/ScoM]

  1. SPREADING CONTROLLERS OVER ZONES
  2.  
  3. >How can I define a controller to go across zones? 
  4.  
  5. try the example:
  6.  
  7. (null-compiler)
  8.  
  9. (def-section simple-sect 
  10.   
  11.   default
  12.      tempo-zones '(1/1)
  13.      tempo '(60)
  14.      
  15.   inst1
  16.      zone '(1/4 1/4 1/4 1/4 1/4 1/4 1/4 1/4 )
  17.      tonality (list '(c 4))
  18.      
  19.      symbol '(a)
  20.      length '(1/16)
  21.      
  22.      duration '((1/17))
  23.      velocity (gen-cresc-dim 1 127 32)
  24.      
  25.      channel 1
  26.      program 1
  27.      controller (jv-controllers        
  28.                  Volume (list '(127))
  29.                  Pan  (list (gen-cresc-dim 1 127 32))  ; restarted each 
  30. zone
  31.                  
  32. ; Why I can not define a controller list to go across zones as the 
  33. following lines? 
  34. ; (I can do it with symbols and lengths...see velocity...)
  35. ;                Pan   '(64 34 56 12)
  36. ;                Pan  (gen-cresc-dim 1 127 30)
  37.                  
  38.                  
  39.                  )
  40.      groove   '(0)
  41.      tuning '((0))
  42.   )
  43. (play-file "Prbx"
  44.            inst1 simple-sect
  45.            )
  46.  
  47. ;Play the song
  48. (launch-midi "SCPL" "Prbx")
  49.